import request from '@/utils/request-new'


//设备管理中的分页查询
export function getSensorsPaging(data) {
    return request({
        url:'/hangf/getSensorsPaging',
        method: 'get',
        params:data,
    })
}
//设备管理中的分页查询
export function getDevicesNew(data) {
    return request({
        url:'/hangf/getDevicesNew',
        method: 'get',
        params:data,
    })
}
//组织名称
export function getSessonsCodes(data) {
    return request({
        url:'/hangf/getSessonsCodes',
        method: 'get',
        params:data,
    })
}

//模糊查询
export function getVagueSensors(data) {
    return request({
        url:'/hangf/getVagueSensors',
        method: 'get',
        params:data,
    })
}
//粘度接口   ------------详情页 ---上一个
export function getSensorsVis(data) {
    return request({
        url:'/hangf/getSensorsVis',
        method: 'get',
        params:data,
    })
}

//粘度接口   ------------详情页 ---下一个
export function getSensorsVis40(data) {
    return request({
        url:'/hangf/getSensorsVis40',
        method: 'get',
        params:data,
    })
}
//介电常数接口   ------------详情页
export function getSensorDiel(data) {
    return request({
        url:'/hangf/getSensorDiel',
        method: 'get',
        params:data,
    })
}
//水活性接口   ------------详情页
export function getSensorAw(data) {
    return request({
        url:'/hangf/getSensorAw',
        method: 'get',
        params:data,
    })
}
//含水量接口   ------------详情页
export function getSensorPpm(data) {
    return request({
        url:'/hangf/getSensorPpm',
        method: 'get',
        params:data,
    })
}
//磨粒分布接口   ------------详情页
export function getSensorAbrasiveGrain(data) {
    return request({
        url:'/hangf/getSensorAbrasiveGrain',
        method: 'get',
        params:data,
    })
}
//工作状态------------详情页
export function getSensorsState(data) {
    return request({
        url:'/hangf/getSensorsState',
        method: 'get',
        params:data,
    })
}
//监测数据
export function getSensorPageDate(data) {
  return request({
    url:'/hangf/getSensorPageDate',
    method: 'get',
    params:data,
  })
}

//预警信息
export function getWarningsBySensorCode(data) {
  return request({
    url:'/hangf/getWarningsBySensorCode',
    method: 'get',
    params:data,
  })
}
//历史数据
export function getSensorsByCode(data) {
  return request({
    url:'/hangf/getSensorsByCode',
    method: 'get',
    params:data,
  })
}
//设备添加
export function addDevices(data) {
  return request({
    url:'/hangf/addDevices',
    method: 'post',
    data:data,
  })
}
//设备修改
export function updateDevicesNew(data) {
  return request({
    url:'/hangf/updateDevicesNew',
    method: 'post',
    data:data,
  })
}
//终端添加
export function addSensor(data) {
  return request({
    url:'/hangf/addSensor',
    method: 'post',
    data:data,
  })
}
//终端修改
export function updateSensors(data) {
  return request({
    url:'/hangf/updateSensors',
    method: 'post',
    data:data,
  })
}
//历史数据
export function getSensorsDateManage(data) {
  return request({
    url:'/hangf/getSensorsDateManage',
    method: 'get',
    params:data,
  })
}
//终端搜索
export function getSensorsPagings(data) {
  return request({
    url:'/hangf/getSensorsPagings',
    method: 'get',
    params:data,
  })
}

 


